/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import beans.AfiliadoSesionBean;
import daos.Dao;
import daos.DaoFactory;
import java.util.logging.Level;
import java.util.logging.Logger;







   
    
 
/**
 *
 * @author Cristian
 */
public class prueba {
    
    public static void main(String[] args) {
               
          AfiliadoSesionBean asb = new AfiliadoSesionBean(1,1);
            Dao dao;
            long s =0;
        try {
            dao = DaoFactory.getDao("AfiliadoSesion");
            s = dao.insert(asb);
        } catch (Exception ex) {
            Logger.getLogger(prueba.class.getName()).log(Level.SEVERE, null, ex);
        }
            
       System.out.println("Sessio " + s);
        
    }



  
}
    
    

